<?php
class Default_Model_Slide extends Zend_Db_Table{
	protected $_name = 'slide';
	protected $_primary = 'slideid';
	
	public function slideItem($arrParam = null, $option = null){
		$db = Zend_Registry::get('connectDb');
		//$db = Zend_Db::factory($adapter, $config);
		
		$select = $db->select()
					 ->from('slide AS s', array('slideid', 'title', 'content', 'imglarge', 'imgsmall'))
                                         ->where('status = ?', '1')
					 ->order('order ASC');
		$result = $db->fetchAll($select);
		
		return $result;
	}

}